home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / editor / pedit.zip / RAMEDIT.BAT < prev    next >
DOS Batch File  |  1992-11-01  |  2KB  |  51 lines

  1. @echo off
  2. Rem
  3. Rem []==================================================================[]
  4. Rem [] RAMEDIT.BAT                            []
  5. Rem []                                    []
  6. Rem [] Installs (deinstalls) the auxillary pEDIT files on a ram disk    []
  7. Rem [] for speed. Loading the INI file and shelling to DOS will be    []
  8. Rem [] much faster. Note that PEDIT.EXE is not moved. This version is    []
  9. Rem [] set up for the following (you may have to make changes):        []
  10. Rem []                                    []
  11. Rem []     (1) pEDIT files in C:\PEDIT                    []
  12. Rem []     (2) RAM drive is drive D:                    []
  13. Rem []     (3) pEDIT uses STD macros                    []
  14. Rem []                                    []
  15. Rem [] The usage is : RAMEDIT I       (Install)                []
  16. Rem []                RAMEDIT D       (Deinstall)            []
  17. Rem []==================================================================[]
  18. Rem
  19. if "%1"=="I" goto Install
  20. if "%1"=="i" goto Install
  21. if "%1"=="D" goto DeInstall
  22. if "%1"=="d" goto DeInstall
  23. goto Abort
  24. :Install
  25.  set PEDIT=D:\
  26.  copy C:\PEDIT\PEDIT.KEY D:\ >nul
  27.  copy C:\PEDIT\PEDIT.INI D:\ >nul
  28.  copy C:\PEDIT\PEDIT.HLP D:\ >nul
  29.  copy C:\PEDIT\PEDIT.BAR D:\ >nul
  30.  copy C:\PEDIT\PEDIT.SHR D:\ >nul
  31.  copy C:\PEDIT\PEDIT.BTN D:\ >nul
  32.  copy C:\PEDIT\PEDIT.INF D:\ >nul
  33.  copy C:\PEDIT\STD*.PM1 D:\ >nul
  34.  goto Exit
  35. :DeInstall
  36.  set PEDIT=C:\PEDIT
  37.  del D:\PEDIT.KEY
  38.  del D:\PEDIT.INI
  39.  del D:\PEDIT.HLP
  40.  del D:\PEDIT.BAR
  41.  del D:\PEDIT.SHR
  42.  del D:\PEDIT.BTN
  43.  copy D:\PEDIT.INF C:\PEDIT >nul
  44.  del D:\PEDIT.INF
  45.  del D:\STD*.PM1
  46.  goto Exit
  47. :Abort
  48.  echo Usage is: RAMEDIT I/D
  49. :Exit
  50. 
  51.